#define _CRT_SECURE_NO_WARNINGS
#include"List.h";

void test()
{
	LTNode* plist = LTInit();
	//LTPushBack(plist, 1);
	//LTPrint(plist);
	
	//LTPrint(plist);
	//LTPopBack(plist);
	//LTPrint(plist);
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	//LTPrint(plist);
	//LTPopFront(plist);
	/*LTPrint(plist);
	LTInsert(plist, 2);*/
	/*LTPrint(plist);
	LTErase(3);*/
	//LTNode* find = LTFind(plist, 3);
	//LTErase(find);
	//find = NULL;
	//LTPrint(plist);
	//LTDesTroy(plist);
	LTNode* pos = LTFind(plist, 2);
	if (pos != NULL) {
		LTInsert(pos, 4);
		LTPrint(plist);
	}
	LTPrint(plist);
}
int main()
{
	test();
	return 0;
}